<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>Hello MUI</title>
    <script src="../js/mui.min.js"></script>
    <link href="../css/mui.min.css" rel="stylesheet"/>
    <script type="text/javascript" charset="utf-8">
      	mui.init();
    </script>
</head>
<body>
	
	<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">折叠面板</h1>
	</header>
	<div class="mui-content">
		<div class="mui-input-row mui-radio mui-left">
			<label>111</label>
			<input name="checkbox1" value="Item 1" type="radio" class="rds" checked="checked">
		</div>
		<div class="mui-input-row mui-radio mui-left">
			<label>222</label>
			<input name="checkbox1" value="Item 2" type="radio" class="rds">
		</div>
		<button onclick="getRadio()" type="button">an</button>
	</div>
	<script type="text/javascript">
		function getRadio(){
			var res =   getVal('rds');
			mui.toast(res);
		}
		//封装
		function getVal(className){
			var resObj = document.getElementsByClassName(className);
			var checkVal ;
			for(var i = 0; i<resObj.length;i++){
				if(resObj[i].checked){
					checkVal = resObj[i].value;
				}
			}
			return checkVal;
		}
	</script>
</body>
</html>